package com.guodefu.sensitive.handler;

import com.guodefu.sensitive.config.SensitiveStrategy;

public class NameSensitiveStrategy implements SensitiveStrategy {
    @Override
    public String mask(String name, String maskString) {
        if (name.length() <= 1) {
            return maskString;
        }
        return name.charAt(0) + maskString;
    }
}
